package com.ruoyi.common.core.domain.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 小程序用户（家长）信息对象 zx_smalluser
 * 
 * @author ruoyi
 * @date 2021-05-08
 */
public class Smalluser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识ID */
    private Long suId;

    /** 小程序用户姓名 */
    @Excel(name = "小程序用户姓名")
    private String suName;

    /** openId */
    @Excel(name = "openId")
    private String suOpenid;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String suPhone;

    /** 所在省份 */
    @Excel(name = "所在省份")
    private String suProvince;

    /** 所在城市 */
    @Excel(name = "所在城市")
    private String suCity;

    /** 所在区 */
    @Excel(name = "所在区")
    private String suArea;

    /** 用户年龄 */
    @Excel(name = "用户年龄")
    private Integer suAge;

    /** 用户性别 */
    @Excel(name = "用户性别")
    private String suGender;

    /** 孩子 */
    private List<Student> children = new ArrayList<Student>();
    /** 关注时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "关注时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;
    public void setSuId(Long suId)
    {
        this.suId = suId;
    }

    public Long getSuId()
    {
        return suId;
    }
    public void setSuName(String suName) 
    {
        this.suName = suName;
    }

    public String getSuName() 
    {
        return suName;
    }
    public void setSuOpenid(String suOpenid) 
    {
        this.suOpenid = suOpenid;
    }

    public String getSuOpenid() 
    {
        return suOpenid;
    }
    public void setSuPhone(String suPhone) 
    {
        this.suPhone = suPhone;
    }

    public String getSuPhone() 
    {
        return suPhone;
    }
    public void setSuProvince(String suProvince) 
    {
        this.suProvince = suProvince;
    }

    public String getSuProvince() 
    {
        return suProvince;
    }
    public void setSuCity(String suCity) 
    {
        this.suCity = suCity;
    }

    public String getSuCity() 
    {
        return suCity;
    }
    public void setSuArea(String suArea) 
    {
        this.suArea = suArea;
    }

    public String getSuArea() 
    {
        return suArea;
    }
    public void setSuAge(Integer suAge) 
    {
        this.suAge = suAge;
    }

    public Integer getSuAge() 
    {
        return suAge;
    }
    public void setSuGender(String suGender) 
    {
        this.suGender = suGender;
    }

    public String getSuGender() 
    {
        return suGender;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("suId", getSuId())
            .append("suName", getSuName())
            .append("suOpenid", getSuOpenid())
            .append("suPhone", getSuPhone())
            .append("suProvince", getSuProvince())
            .append("suCity", getSuCity())
            .append("suArea", getSuArea())
            .append("suAge", getSuAge())
            .append("suGender", getSuGender())
            .append("time", getTime())
            .toString();
    }

    public List<Student> getChildren() {
        return children;
    }

    public void setChildren(List<Student> children) {
        this.children = children;
    }
}
